package cc.yaomm.common.basic.enums;

import cc.yaomm.common.basic.base.SuperEnum;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 授权级别枚举
 */
@Getter
public enum AuthLevelEnum implements SuperEnum<AuthLevelEnum, Integer> {

    /**
     * 开放，无权限
     */
    OPEN(1, "无权限"),

    /**
     * 登录
     */
    LOGIN(2, "登陆"),

    /**
     * 鉴权
     */
    AUTH(3, "鉴权");

    @EnumValue
    private final Integer value;

    private final String name;

    AuthLevelEnum(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public AuthLevelEnum[] enums() {
        return values();
    }
}
